package io.renren.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import io.renren.dao.DictionaryDao;
import io.renren.entity.Dictionary;
import io.renren.service.DictionaryService;


@Service("dictionaryService")
public class DictionaryServiceImpl implements DictionaryService {
    @Resource
    private DictionaryDao dictionaryDao;

    @Override
    public Dictionary queryObject(Long id) {
        return dictionaryDao.queryObject(id);
    }

    @Override
    public List<Dictionary> queryList(Map<String, Object> map) {
        return dictionaryDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return dictionaryDao.queryTotal(map);
    }

    @Override
    public void save(Dictionary dictionary) {
            dictionaryDao.save(dictionary);
    }

    @Override
    public void update(Dictionary dictionary) {
            dictionaryDao.update(dictionary);
    }

    @Override
    public void delete(Long id) {
            dictionaryDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[]ids) {
            dictionaryDao.deleteBatch(ids);
    }

    @Override
    public void updateBatch(List<Dictionary> dictionarieList) {
        dictionaryDao.updateBatch(dictionarieList);
    }

}
